home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
pascal
/
xlib.zip
/
XDRIVE.DOC
< prev
next >
Wrap
Text File
|
1992-09-05
|
2KB
|
64 lines
XDrive
------
This unit give you object-oriented access to the drives in your computer.
TDrive
~~~~~
"TDrive" implements a general object for drive acces and information.
Fields:
-------
Drv : Char The Drive itself. For example C:
Methods
-------
constructor Init( ADrv:Char );
Initialize the object for a given drive. ADrv can be ranged from
'A' to 'Z'.
constructor InitProgramDrive;
Initialize the object for the drive on which the program was located.
constructor InitCurrentDrive;
Initialize the object for the current drive
constructor InitBootDrive;
Initialize the object for the drive from which were booted. This
constructor use an undocumented call, so be carefully withit !
function GetCode:Byte; virtual;
Return a code for the drive that can be used by many DOS functions.
Can be range from 0 to 25. Calculated by subtract 65 from the
Drv alpha.
function GetPlace:Longint; virtual;
Return the place which is free on the drive. Value is in bytes
function GetSize:Longint; virtual;
Return the total size which is aviable to the drive. By subtract
the GetPlace value from this value you can get the bytes that
are stored on the drive.
function GetLabel:PathStr; virtual;
Return the label of the drive if exists
function Exists:Boolean; virtual;
Look if drive exists in that environment
function IsClosed:Boolean; virtual;
Check if drives is closed. Make sense only on floppy-drives
function IsOnNet:Boolean; virtual;
Check if the drive is a network drive. For this method a
IOCTL function would be used.
procedure Reset; virtual;
Reset the drive. Can be neccessary for some type of
copy-operations on floppy-drives.